package shop.ynubeggar.service;

import com.baomidou.mybatisplus.extension.service.IService;
import shop.ynubeggar.model.dataobject.CategoryDO;
import shop.ynubeggar.model.valueobject.CategoryVO;
import shop.ynubeggar.request.CreateCategoryRequest;
import shop.ynubeggar.request.UpdateCategoryRequest;

import java.util.Map;

public interface AdminCategoryService extends IService<CategoryDO> {

    void createCategory(CreateCategoryRequest createCategoryRequest);

    Map<String, Object> listAllCategory(int page, int size);

    CategoryVO findOneCategory(long categoryId);

    void deleteOneCategory(long categoryId);

    void updateCategory(long id, UpdateCategoryRequest updateCategoryRequest);
}
